import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';
import {UIRiskReport} from "../../../entity/UIRiskReport";
import {Router} from "@angular/router";

@Component({
  selector: 'app-risk-report-list',
  templateUrl: './risk-report-list.component.html',
  styleUrls: ['./risk-report-list.component.css']
})
export class RiskReportListComponent implements OnInit {

  @Input() values : UIRiskReport[] = [];

  @Output() detailFired : EventEmitter<UIRiskReport> = new EventEmitter<UIRiskReport>();


  constructor(protected _router: Router) { }

  ngOnInit() : void {
  }

  detail(v : UIRiskReport){
    //TODO pass proxy and let the detail page to request more details
    this.detailFired.emit(v)
  }

}
